package org.sidora.core;



/**
 * Variable
 * @author Enric Tartera, Juan Manuel Gimeno, Roger Masgoret
 * @version 1.0
 */
public class Variable {
	
	private String referencedClass;
	private String label;
	
	public Variable(){
		
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getReferencedClass() {
		return referencedClass;
	}
	public void setReferencedClass(String referencedClass) {
		this.referencedClass = referencedClass;
	}
	public boolean equals(Object obj) {
    	if (obj == this)	return true;
    	if (!(obj instanceof Variable)) return false;
    	Variable var = null;	
    	try {
    		var = (Variable) obj;
		} catch (Exception e) {
			return false;
		}
    	if (!this.referencedClass.equals(var.referencedClass)) return false;
    if (!this.label.equals(var.label)) return false;
    	return true; 
    }
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.label;
	}
	
	
	
	


}




